package me.zhengjie.modules.finace_taxation.service.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import me.zhengjie.base.CommonMapper;
import me.zhengjie.modules.finace_taxation.domain.FtOrder;
import me.zhengjie.modules.finace_taxation.domain.FtOrderSchedule;
import me.zhengjie.modules.finace_taxation.domain.FtOrderVO;
import me.zhengjie.modules.finace_taxation.domain.FtServiceVO;
import me.zhengjie.modules.finace_taxation.service.dto.FtOrderDto;
import me.zhengjie.modules.finace_taxation.service.dto.FtOrderQueryParam;
import me.zhengjie.modules.finace_taxation.service.dto.FtServiceDto;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
* @author 杨荣森
* @date 2021-06-30
*/
@Repository
public interface FtOrderMapper extends CommonMapper<FtOrder> {

    /*添加订单的进度信息*/
    int insertOrderSchedule(FtOrderSchedule ftOrderSchedule);

    /*查询订单列表*/
    IPage<FtOrderDto> getOrders(IPage<FtOrderDto> page, Map<String,Object> map);

    List<FtOrderDto> getOrdersDownLoad(FtOrderQueryParam queryParam);

    /*查询我的服务记录*/
    List<FtOrderVO> getOrdersByUserId(Page page, Map<String,Object> map);

    /*根据订单id查询订单的最后一条进度*/
    FtOrderSchedule getOrderScheduleByOrderId(String orderId);

    /*根据订单id查询订单的所有进度*/
    List<FtOrderSchedule> getOrderScheduls(String orderId);

    /*修改订单进度*/
    int updateOrderSchedule(FtOrderSchedule ftOrderSchedule);
}
